#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>

#include "constantes.h"
#include "aide.h"

void pause();
void aide(SDL_Surface* ecran)
{
    int argc; char *argv[100];
SDL_Surface *imageDeFond = NULL;
SDL_Rect positionFond;
positionFond.x = 0;
positionFond.y = 0;

SDL_Init(SDL_INIT_VIDEO);
ecran = SDL_SetVideoMode(530, 480, 32, SDL_HWSURFACE);
SDL_WM_SetCaption("aide", NULL);
imageDeFond = SDL_LoadBMP("img/aide.bmp");
SDL_BlitSurface(imageDeFond, NULL, ecran, &positionFond);
SDL_Flip(ecran);
pause();
SDL_FreeSurface(imageDeFond);

SDL_Quit();
}
void pause()
{
int continuer = 1;
SDL_Event event;
while (continuer)
{
SDL_WaitEvent(&event);
switch(event.type)
{
case SDL_QUIT:
continuer = 0;
}
}
}
